package com.bank.svc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bank.dao.NewsTypeDao;
import com.bank.pojo.BankNewsType;

@Service("newsTypeSvc")
public class BankNewsTypeSvc {
	@Resource(name="newsTypeDao")
	private NewsTypeDao ntd;
	
	public BankNewsType getTypeById(int nid){
		return ntd.getTypeById(nid);
	}
	public List<BankNewsType> getAllType(){
		return ntd.getAllType();
	}

	public void setNtd(NewsTypeDao ntd) {
		this.ntd = ntd;
	}
}
